home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20010921-20020314
/
000300_fdc@columbia.edu_Mon Jan 21 14:29:21 EST 2002.msg
< prev
next >
Wrap
Text File
|
2002-03-13
|
2KB
|
43 lines
Article: 13135 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Command line redirection with K95 ?
Date: 21 Jan 2002 14:28:59 -0500
Organization: Columbia University
Lines: 26
Message-ID: <a2hq5r$ai4$1@watsol.cc.columbia.edu>
References: <3d44a7c4.0201211041.639becb6@posting.google.com>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1011641341 23160 128.59.39.139 (21 Jan 2002 19:29:01 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 21 Jan 2002 19:29:01 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13135
In article <3d44a7c4.0201211041.639becb6@posting.google.com>,
Larry Mann <lvm@cowlitz.com> wrote:
: Many years ago I wrote several Kermit scripts, on HP-UX, which were
: run form the command line through standard input redirection and the
: output was captured to file through redirection.
:
This is not a good way to write scripts, for more reasons than I can
list here, but obviously you have discovered one of them.
: I now need to move
: these scripts to a Windows 2000 Server but have found that redirection
: does not appear to work with K95.
:
It doesn't read from "stdin", it reads from the keyboard.
: If appears simple to put the script
: file name as the first param when calling K95 to specify the script to
: run but have been unable to capture the remote systems response to
: commands in a local file.
:
: More explicitly, how would I capture the response to "rem dir" to a
: local file for futher processing in a shell script?
:
REM DIR foo.* > filename
- Frank